package com.ruoyi.freight.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.freight.api.domain.AeProductFreight;
import com.ruoyi.freight.api.domain.ErpProductExistingFreightRecord;
import com.ruoyi.gather.api.domain.dto.ComputeFreightDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteFreightService", value = ServiceNameConstants.FREIGHT_SERVICE)
public interface RemoteFreightService {

    @GetMapping("/freight/calculateFreight")
    public R<String> calculateFreight(@RequestBody ErpProductExistingFreightRecord erpProductExistingFreightRecord);

    @GetMapping("/freight/freightTrialWith64")
    public R<Object> freightTrialWith64(@RequestBody AeProductFreight aeProductFreight);

    @PostMapping("/freight/computeFreightWith64")
    public R<Object> computeFreightWith64(@RequestBody ComputeFreightDto dto);

//    @GetMapping("/ae/category/getBrandById")
//    public R<List<Aliexpress.CategoryInfoVo>> getBrandById(Long categoryId, Long storeId);
}
